package Strategy_Pattern.Airplane;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        Fly fly=new Fly();
        Plane plane1,plane2,plane3,plane4;
        plane1=new Helicopter();
        plane2=new Fighter();
        plane3=new AirPlane();
        plane4=new Harrier();
        fly.setPlane(plane1);
        fly.start();
        fly.setPlane(plane2);
        fly.start();
        fly.setPlane(plane3);
        fly.start();
        fly.setPlane(plane4);
        fly.start();
    }
}
